<table width="200" height="5" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table>

<table width="1000" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="ffeac7">
  <tr>
    <td height="91" align="center" valign="top" bgcolor="fffbed"><table width="98%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="30" align="left" class="tit">今日十大名菜</td>
      </tr>
    </table>
      <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <?php 
          foreach ($rFoods as $v):
          	$info = FoodPeer::retrieveByPK($v->getObjectId());
          	if($info):
          		$imgArray = explode("|",$info->getImg());
          ?>
          <td align="center">
          	<a href="/food/intro?id=<?php echo $info->getId()?>">
          		<img src="<?php echo SITE_URL.'uploads/'.$imgArray['0']?>" width="80" height="80" border="0" class="img" />
          	</a><br></td>
          	<?php endif;?>
          <?php endforeach;?>
        </tr>
        <tr>
          <?php 
          foreach ($rFoods as $v):
          	$info = FoodPeer::retrieveByPK($v->getObjectId());
          	if($info):
          		$imgArray = explode("|",$info->getImg());
          ?>
          <td align="center" height="25">
          	<a href="/food/intro?id=<?php echo $info->getId()?>" class="imgword"><?php echo $info->getName()?></a>
          </td>
          	<?php endif;?>
          <?php endforeach;?>
        </tr>
    </table></td>
  </tr>
</table>
<table width="200" height="5" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="2%" background="<?php echo SITE_URL?>img/made/made_r5_c3.jpg"><img src="<?php echo SITE_URL?>img/made/made_r5_c2.jpg" width="6" height="33" /></td>
    <td width="72%" background="<?php echo SITE_URL?>img/made/made_r5_c3.jpg" class="weizhi">您当前所在的位置：
    <a href="<?php echo SITE_URL?>" class="weizhi">首页</a> &gt;&gt; 
    <a href="/food/intro?id=<?php echo $foodInfo->getId()?>" class="weizhi"><?php echo $foodInfo->getName()?></a> </td>
    <td width="5%" background="<?php echo SITE_URL?>img/made/made_r5_c3.jpg" class="login">
    <a href="<?php echo SITE_URL?>food/method?id=<?php echo $id?>">做法</a>
    </td>
    <td width="15%" background="<?php echo SITE_URL?>img/made/made_r5_c3.jpg" class="login">相册</td>
    <td width="5%" background="<?php echo SITE_URL?>img/made/made_r5_c3.jpg" class="login">&nbsp;</td>
    <td width="1%" align="right" background="<?php echo SITE_URL?>img/made/made_r5_c3.jpg"><img src="<?php echo SITE_URL?>img/made/made_r5_c23.jpg" width="9" height="33" /></td>
  </tr>
</table>
<table width="200" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td  height="8"></td>
  </tr>
</table>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="24%" height="882" valign="top"><table width="231" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="<?php echo SITE_URL?>img/dp/dianp_r2_c2.jpg" width="230" height="8" /></td>
      </tr>
    </table>
      <table width="230" border="0" cellspacing="0" cellpadding="0">

        <tr>
          <td height="34" valign="top" background="<?php echo SITE_URL?>img/dp/dianp_r5_c2.jpg"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td align="center">
              	<div id="mapObj" class="view" style="width:200px;height:137px"></div> 
				<SCRIPT LANGUAGE="JavaScript">
				  	//设置地图初始化参数对象
				  	var mapOptions = new MMapOptions();
				  	mapOptions.mapId = "fmptest";
				  	mapOptions.zoomLevel = 10;
				  	//设置中心点为北京
				  	mapOptions.center = new MLatLng("KJONOWKMHLL,MRGYNMLHL");
				  	//创建地图对象
				  	var mapObj = new MMap("mapObj", mapOptions);
				
					var points = new Array(); 
				
					var pointStyle = new MStyle(); 
					pointStyle.lineColor = 0xff0000; 
					pointStyle.lineSize = 3; 
					pointStyle.fillColor = 0xddaabb; 
					pointStyle.fillOpacity = 50; 
					pointStyle.labelColor = 0x00ff00; 
					pointStyle.textContent = '';
				
					//循环此部分即可输出多个点.pointStyle.textContent设置的是每个图片在鼠标移上去后显示的详细信息，可以不管.
					<?php foreach ($eaterys as $key => $v):?>
					pointStyle.textContent = "<font color='#ff0000'><?php echo $v->getName()?></font><br><?php echo $v->getDes()?>"; 
					points.push(new MPointOverlay(new MLatLng(<?php echo $v->getXy()?>), "<?php echo $v->getName()?>", pointStyle, "200<?php echo $num?>")); 
					<?php endforeach;?>
					
					mapObj.drawPoints(points, true); 
				</script>
              </td>
            </tr>
            <tr>
              <td height="15"></td>
            </tr>
          </table></td>
        </tr>
      </table>
      <table width="230" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/dp/dianp_r14_c2.jpg" width="230" height="10" /></td>
        </tr>
      </table>
      <table width="231" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>     
	   <table width="229" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="180" valign="top" background="<?php echo SITE_URL?>img/dp/dianp_r16_c3.jpg"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="35" colspan="2" align="left" class="login">那家店铺最好吃</td>
            </tr>
            <?php 
            foreach ($eaterys as $v):
            	if($v):
            ?>
            <tr>
              <td width="67%" height="25" align="left">
              	<a href="/eatery/index?id=<?php echo $v->getId();?>" class="login"><?php echo $v->getName()?></a>
              </td>
              <td width="33%" align="left" class="weizhi">20人推荐</td>
            </tr>
            	<?php endif;?>
            <?php endforeach;?>
            <tr>
              <td colspan="2" align="left" class="white">&nbsp;</td>
            </tr>
            
          </table></td>
        </tr>
      </table>
	  	   <table width="231" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <table width="231" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/made/made_r16_c1.jpg" width="231" height="7" /></td>
        </tr>
      </table>
      <table width="231" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="left" background="<?php echo SITE_URL?>img/made/made_r18_c1.jpg"><table width="95%" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td>&nbsp;&nbsp;<span class="tit">* 吃过的网友</span></td>
              <td class="tit"><a href="javascript:been(<?php echo $foodInfo->getId()?>)" class="titsmall">我吃过</a></td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td background="<?php echo SITE_URL?>img/made/made_r18_c1.jpg" height="5"></td>
        </tr>
        <tr>
          <td background="<?php echo SITE_URL?>img/made/made_r18_c1.jpg"><table width="98%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="5"></td>
              </tr>
            </table>
            <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <?php 
              	foreach ($beenUsers as $v):
              		$userInfo = getUserById($v->getUserId());
              	?>
                <td width="25%" align="center">
                	<img src="<?php echo SITE_URL."ucenter/avatar.php?uid=".$v->getUserId()."&size=small"?>" width="38" height="38" class="headimg" /><br />
                </td>
                <?php endforeach; ?>
              </tr>
              <tr>
                <?php 
              	foreach ($beenUsers as $v):
              		$userInfo = getUserById($v->getUserId());
              	?>
                <td align="center" height="25">
                	<a href="<?php echo SNS_URL.'/../space.php?uid='.$v->getUserId()?>"class="imgword"><?php echo $userInfo['username']?></a>
                </td>
               	<?php endforeach; ?>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="231" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/made/made_r22_c1.jpg" width="231" height="7" /></td>
        </tr>
      </table>
      <table width="231" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <table width="234" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/photo/jq_photo_r15_c1.jpg" width="234" height="7" /></td>
        </tr>
      </table>
      <table width="234" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="center" background="<?php echo SITE_URL?>img/photo/jq_photo_r16_c1.jpg"><table width="90%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="100%" height="30" align="left" class="tit">活动</td>
              </tr>
<?php foreach($actions as $i=>$a){ ?>
              <tr>
                <td height="25" align="left"><span class="word"><a href="<?php echo $a['url']; ?>"><?php echo $a['subject']; ?></a></span><span class="yh"><a href="<?php echo $a['url']; ?>">【正在报名】</a></span></td>
              </tr>
<?php } ?>
          </table></td>
        </tr>
      </table>
      <table width="234" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/photo/jq_photo_r18_c1.jpg" width="234" height="6" /></td>
        </tr>
      </table>
      <table width="231" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
    </td>
    <td width="76%" align="center" valign="top"><table width="746" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="<?php echo SITE_URL?>img/made/made_r30_c10.jpg" width="746" height="11" /></td>
      </tr>
    </table>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="center" valign="top" background="<?php echo SITE_URL?>img/made/made_r32_c10.jpg"><table width="95%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="82%" height="30" align="left" class="tit">做法分享</td>
                <td width="18%" class="titsmall"><a href="/food/method?id=<?php echo $foodInfo->getId()?>">我有不同做法</a></td>
              </tr>
            </table>
              <table width="95%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td colspan="2" height="30" align="center">
                  	<a href="/food/method?id=<?php echo $foodInfo->getId()?>" class="word">
                  		<?php if($method){ echo $method->getDes();} ?>
                  	</a>
                  </td>
                </tr>
                
                <tr>
                  <td width="82%" height="25" align="center">&nbsp;</td>
                  <td width="18%" align="center"class="word"><a href="/food/method?id=<?php echo $foodInfo->getId()?>">查看全部做法</a></td>
                </tr>
            </table></td>
        </tr>
      </table>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/made/made_r39_c10.jpg" width="746" height="9" /></td>
        </tr>
      </table>
      <table width="47" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="5"></td>
      </tr>
    </table>
    <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/dp/dianp_r9_c7.jpg" width="749" height="7" /></td>
        </tr>
      </table>
      <table width="749" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="center" background="<?php echo SITE_URL?>img/dp/dianp_r10_c7.jpg"><table width="95%" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td height="30" colspan="5" align="left"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="89%" class="tit"><a href="jq_photobox.html">美食相册</a></td>
                    <td width="11%" class="titsmall"><a href="/galleryPhotos/create?type=food&id=<?php echo $foodInfo->getId()?>">我要发布</a></td>
                  </tr>
                </table></td>
            </tr>
            <tr>
              <?php foreach ($gallerys as $v):?>
              <td><a href="<?php echo SITE_URL?>galleryPhotos/index?type=food&id=<?php echo $v->getId()?>">
              	<img src="<?php echo SITE_URL.'uploads/'.$v->getCover()?>" width="130" height="85" class="img" />
              	</a></td>
              <?php endforeach;?>
            </tr>
            <tr>
              <?php 
              foreach ($gallerys as $v):
              	$userInfo = getUserById($v->getUserId());
              ?>
              <td height="25" align="center" class="yh"><a href="<?php echo SNS_URL.'/../space.php?uid='.$v->getUserId()?>">由<?php echo $userInfo['username']?>上传</a></td>
              <?php endforeach;?>
            </tr>
          </table></td>
        </tr>
      </table>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/dp/dianp_r17_c7.jpg" width="749" height="7" /></td>
        </tr>
      </table>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="8"></td>
        </tr>
      </table>
      <?php if($sceneId):?>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="8"><img src="<?php echo SITE_URL?>img/js/jq_index_r1_c1.jpg" width="746" height="9" /></td>
        </tr>
      </table>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="51" align="center" valign="top" background="<?php echo SITE_URL?>img/js/jq_index_r3_c1.jpg"><table width="95%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="83%" height="30" align="left" class="tit">该景点中你还能在一下店铺吃到</td>
              <td width="17%" class="titsmall"><a href="/Eatery/create?sceneid=<?php echo $sceneId?>">我也发现一个</a></td>
            </tr>
          </table>
          	<?php foreach ($eaterys1 as $v):?>
            <table width="95%" height="60" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="9%" rowspan="3">
                	<a href="/eatery/index?id=<?php echo $v->getId()?>" alt="<?php echo $v->getName()?>" >
                		<img src="<?php echo SITE_URL.'uploads/'.$v->getImg()?>" width="50" height="50" border="0" class="img" />
                	</a>
                </td>
                <td height="25" align="left" class="titsmall">
                	店铺名：<a href="/eatery/index?id=<?php echo $v->getId()?>" alt="<?php echo $v->getName()?>" >
                	<?php echo $v->getName()?>
                	</a>
                </td>
                <td align="left" class="titsmall">联系电话：<?php echo $v->getTel()?></td>
                <td align="left" class="titsmall">人均消费：<?php echo $v->getConsume()?></td>
              </tr>
              <tr>
                <td height="25" colspan="3" align="left" class="titsmall">地址：<?php echo $v->getAddress()?></td>
              </tr>
              <tr>
                <td height="25" colspan="3" align="left" class="titsmall">其他特色：<?php echo $v->getSpecial()?></td>
              </tr>
            </table>
        	<?php endforeach;?>
            </td>
        </tr>
      </table>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="8"><img src="<?php echo SITE_URL?>img/js/jq_index_r5_c1.jpg" width="746" height="6" /></td>
        </tr>
      </table>
      <?php endif;?>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="8"></td>
        </tr>
      </table>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/made/made_r30_c10.jpg" width="746" height="11" /></td>
        </tr>
      </table>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="center" valign="top" background="<?php echo SITE_URL?>img/made/made_r32_c10.jpg"><table width="95%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="82%" height="30" align="left" class="tit">你还能在这些景区中吃到</td>
              <td width="18%" class="titsmall"><a href="/eatery/create">我也发现个好吃的</a></td>
            </tr>
          </table>
            <table width="95%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td colspan="4" align="left" height="25" bgcolor="#FFFCED" class="tit">所属景区</td>
                <td width="28%" align="left" bgcolor="#FFFCED" class="tit">店铺名</td>
                <td width="40%" align="left" bgcolor="#FFFCED" class="tit">地址</td>
              </tr>
              <?php 
              foreach ($eaterys2 as $v):
              	$sceneInfo = ScenePeer::retrieveByPK($v->getSceneId());
              ?>
              <tr>
                <td colspan="4" height="25" align="left" class="titsmall"><a href="<?php echo SITE_URL?>scene/index?id=<?php echo $v->getSceneId();?>"><?php echo $sceneInfo->getName()?></a></td>
                <td align="left" class="tit"><a href="/eatery/index?id=<?php echo $v->getId()?>"><?php echo $v->getName()?></a></td>
                <td align="left" class="word"><?php echo $v->getAddress()?></td>
              </tr>
              <?php endforeach;?>
            </table></td>
        </tr>
      </table>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/made/made_r39_c10.jpg" width="746" height="9" /></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>
<script>
function been(id){
	$.get('/food/been',{id:id,type:'food'},function(msg){
		location.reload();
	});
}
</script>